<template>
    <div class="ui-page-title">
        <div class="ui-page-title-nav">{{ title }}</div>
        <div class="ui-page-title-extra">
            <slot name="extra"></slot>
        </div>
    </div>
</template>

<script>
export default {
    name: 'PageTitle',
    props: {
        title: {
            type: String,
            default: ''
        }
    }
}
</script>

<style scoped>
.ui-page-title {
    position: relative;
    margin-top: -6px;
    margin-bottom: 16px;
    height: 37px;
    border-bottom: 1px solid #dcdee2;
}
.ui-page-title-nav {
    position: absolute;
    left: 0;
    bottom: -1px;
    padding: 8px 16px;
    line-height: 19px;
    color: #1ba2fc;
    font-size: 14px;
    border-bottom: 2px solid #1ba2fc;
}
.ui-page-title-extra {
    position: absolute;
    right: 0;
    bottom: 0;
}
</style>